<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>商品列表</title>
    <link rel="stylesheet" href="./css/app.css" />
  </head>
  <body>
    <table border="1">
      <tr>
        <td>ID</td>
        <td>名称</td>
        <td>价格</td>
        <td>图片</td>
      </tr>
      <% for(let i=0;i<data.length;i++){ %>
        <tr>
          <td><%= data[i].id %></td>
          <td><%= data[i].title %></td>
          <td><%= data[i].price %></td>
          <td><img width="60" src="<%= data[i].remote_img %>" /></td>
        </tr>
      <% } %>
    </table>
  </body>
</html>
